package com.JFapp.mapper;


import com.JFapp.domain.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


/**
 * 计服用户表(User)表数据库访问层
 *
 * @author makejava
 * @since 2023-11-08 23:32:01
 */
public interface UserMapper extends BaseMapper<User> {

    Long selectIdByName(String userName);

    List<Long> selectByNames(@Param("userNames") List<String> userNames);

    @MapKey("id")
    List<Map<String, Object>> getNamesById(@Param("userIds") List<Long> userIds);
}
